<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/5/24 0024
 * Time: 16:14
 */

namespace app\wap\validate;


use think\Validate;

class Center extends Validate
{
    protected $rule = [
        'data'  => '',
        'type'  => 'require|in:1,2,3',
        'low'   => 'require|number|>:0',
        'cu_id' => 'require|integer',
        'model' => 'require|between:1,7',
        'x'     => 'require|in:nx,zn,cl',
        'stime' => 'require|between:0,2359',
        'etime' => 'require|between:0,2359',
        'msg'   => 'require|in:0,1',
    ];
    protected $message = [
        'type.require'      =>  '请选择价格列表',
        'type.in'           =>  '请选择正确的列表',
        'model.require'     =>  '请选择消息模块',
        'model.between'     =>  '请选择正确的选项',
        'x.require'         =>  '请选择服务项目',
        'x.in'              =>  '不存在该服务项目',
        'msg.require'       =>  '请选择是否开启提醒',
        'msg.in'            =>  '请选择正确的提醒选项',
        'stime.require'     =>  '请输入提醒开始时间',
        'stime.between'     =>  '请选择正确的时间点',
        'etime.require'     =>  '请输入提醒结束时间',
        'etime.between'     =>  '请选择正确的时间点',
    ];

    protected $scene = [
        'msgset'         =>['stime,etime,msg'],
        'userinfo'       =>['data'],
        'getgearlist'    =>['type'],
        'getmsg'         =>['model'],
        'userinvitation' =>['data'],
        'countmessage'   =>['data'],
        'zhineng'        =>['data'],
        'niuxiong'       =>['data'],
        'serviceset'     =>['x'],
        'customerservice'=>['data'],
        'aboutour'       =>['data'],
        'sound'          =>['data'],
        'msginfo'        =>['data'],
      	'loginout'		 =>['data'],
    ];
}